var imag =  ["../src/images/空洞骑士.jpg", "../src/images/女孩打游戏.png"]

function setRegistered() {
    var body = document.getElementById("body")
    body.style.background = "url("+imag[1]+")" + "no-repeat"
    body.style.backgroundSize = "cover"
    var goLogin = document.getElementById("go-login")
    goLogin.style.textAlign = "end"
    goLogin.style.marginRight = "0"
    goLogin.style.marginLeft = "215px"
    var box = document.getElementById("box")
    box.style.height = "365px"
    var top = document.getElementById("top")
    top.style.color = "rgba(223, 229, 255, 0.9)"
    document.getElementById("login-box").hidden = true
    document.getElementById("register-box").hidden = false
}


function setLogin() {
    var body = document.getElementById("body")
    body.style.background = "url("+imag[0]+")" + "no-repeat"
    body.style.backgroundSize = "cover"
    document.getElementById("login-box").hidden = false
    document.getElementById("register-box").hidden = true
}